package com.example.demo.jpa.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author ccubee
 * @since 21-1-26 21:17
 */
@Data
@Entity(name = "t_student")
@Table
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Student {

    @Id
    private Integer id;

    private String name;

    private String picUrl;
}
